package projectManagement;

import javax.swing.*;
import java.awt.*;

public class GUIButton extends JButton implements Buttons{
	
	private String fileName;
	private int width;
	private int height;

	public GUIButton(String fileName, int width, int height){
	    this.fileName = fileName;
	    this.width = width;
	    this.height = height;
	    createButton();
	}

	public void createButton(){
	    this.setIcon(new ImageIcon(fileName));
	    this.setPreferredSize(new Dimension(width, height));
	    this.setMaximumSize(new Dimension(width, height));
	    this.setBorderPainted(false);
	 }

}
